package cn.bestick.cblog.dto;

import java.util.Date;
import java.util.List;

public class MsgDto {
	private Integer id;
	private Integer type;
	private Integer pid;
	private String content;
	private Date pubDate;

	private Integer replyType;
	private UserDto user;

	List<MsgReplyDto> chirdren;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getPid() {
		return pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getPubDate() {
		return pubDate;
	}

	public void setPubDate(Date pubDate) {
		this.pubDate = pubDate;
	}

	public Integer getReplyType() {
		return replyType;
	}

	public void setReplyType(Integer replyType) {
		this.replyType = replyType;
	}

	public UserDto getUser() {
		return user;
	}

	public void setUser(UserDto user) {
		this.user = user;
	}

	public List<MsgReplyDto> getChirdren() {
		return chirdren;
	}

	public void setChirdren(List<MsgReplyDto> chirdren) {
		this.chirdren = chirdren;
	}

	@Override
	public String toString() {
		return "MsgDto [id=" + id + ", type=" + type + ", pid=" + pid
				+ ", content=" + content + ", pubDate=" + pubDate
				+ ", replyType=" + replyType + ", user=" + user + ", chirdren="
				+ chirdren + "]";
	}

}
